export default {
  pay_type: [
    { required: true, message: '付款方式不能为空', trigger: 'blur' },
  ],
  payee: [
    { required: true, message: '收款人不能为空', trigger: 'blur' },
  ],
  //采购应付金额老版本正则
  // pay_money: [
  //   { required: true, message: '付款金额不能为空', trigger: 'blur' },
  //   { pattern:/(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$/, message: "请输入整数和小数", trigger: "blur" }
  // ],
  pay_money: [
    { required: true, message: '付款金额不能为空', trigger: 'blur' },
    { pattern:/^(-?\d+\.?)?\d{0,2}$/, message: "请输入整数和小数", trigger: "blur" }
  ],
  zero_amount: [
    { required: true, message: '抹零金额不能为空', trigger: 'blur' },
    { pattern:/^(-?\d+\.?)?\d{0,2}$/, message: "请输入整数和小数", trigger: "blur" }
  ],
}
